package com.chang.gulimall_auth.feign;

import com.chang.common.utils.R;
import com.chang.gulimall_auth.vo.GiteeUserInfo;
import com.chang.gulimall_auth.vo.UserLoginVo;
import com.chang.gulimall_auth.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "member")
public interface MemberFeignServer {
    @PostMapping("member/member/register")
    R register(@RequestBody UserRegisterVo registerVo);

    @PostMapping("member/member/login")
    R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("member/member/authLogin")
    R authLogin(@RequestBody GiteeUserInfo giteeUserInfo);
}
